package com.liwujie.car.dto;

import com.liwujie.core.group.V;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 购物车物品参数
 *
 * @author liwujie
 */
@Data
public class ShopCartItemDTO {
    @NotNull(message = "产品Id不能为空")
    @ApiModelProperty(value = "产品Id")
    private Long spuId;

    @NotNull(message = "skuId不能为空")
    @ApiModelProperty(value = "skuId")
    private Long skuId;

    @Min(value = 1, message = "数量不能小于1")
    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty(value = "商品数量")
    private Integer count;

    @NotNull(message = "店铺Id不能为空")
    @ApiModelProperty(value = "店铺Id")
    private Long shopId;

}
